Telegram Group & Telegram Channel
Pyshark — библиотека для анализа сетевого трафика на Python. Она позволяет работать с .pcap-файлами и захватывать трафик в реальном времени. Для работы нужно установить tshark (идёт вместе с Wireshark) и добавить его в PATH.

Пример анализа файла:
import pyshark

cap = pyshark.FileCapture('example.pcap')
for packet in cap:
print(packet)

Пример захвата в реальном времени:

live_cap = pyshark.LiveCapture(interface='eth0')
for packet in live_cap.sniff_continuously(packet_count=10):
print(packet)

Чтобы фильтровать данные, можно использовать дисплейные фильтры Wireshark:

cap = pyshark.FileCapture('example.pcap', display_filter='http')
for packet in cap:
print(packet.http.host)


Ставится командой ⚙️ pip install pyshark
Документация и примеры кода здесь.



tg-me.com/pythonturboru/603
Create:
Last Update:

Pyshark — библиотека для анализа сетевого трафика на Python. Она позволяет работать с .pcap-файлами и захватывать трафик в реальном времени. Для работы нужно установить tshark (идёт вместе с Wireshark) и добавить его в PATH.

Пример анализа файла:

import pyshark

cap = pyshark.FileCapture('example.pcap')
for packet in cap:
print(packet)

Пример захвата в реальном времени:

live_cap = pyshark.LiveCapture(interface='eth0')
for packet in live_cap.sniff_continuously(packet_count=10):
print(packet)

Чтобы фильтровать данные, можно использовать дисплейные фильтры Wireshark:

cap = pyshark.FileCapture('example.pcap', display_filter='http')
for packet in cap:
print(packet.http.host)


Ставится командой ⚙️ pip install pyshark
Документация и примеры кода здесь.

BY Python Turbo. Уютное сообщество Python разработчиков.




Share with your friend now:
tg-me.com/pythonturboru/603

View MORE
Open in Telegram


Python Turbo Уютное сообщество Python разработчиков Telegram | DID YOU KNOW?

Date: |

Telegram auto-delete message, expiring invites, and more

elegram is updating its messaging app with options for auto-deleting messages, expiring invite links, and new unlimited groups, the company shared in a blog post. Much like Signal, Telegram received a burst of new users in the confusion over WhatsApp’s privacy policy and now the company is adopting features that were already part of its competitors’ apps, features which offer more security and privacy. Auto-deleting messages were already possible in Telegram’s encrypted Secret Chats, but this new update for iOS and Android adds the option to make messages disappear in any kind of chat. Auto-delete can be enabled inside of chats, and set to delete either 24 hours or seven days after messages are sent. Auto-delete won’t remove every message though; if a message was sent before the feature was turned on, it’ll stick around. Telegram’s competitors have had similar features: WhatsApp introduced a feature in 2020 and Signal has had disappearing messages since at least 2016.

What Is Bitcoin?

Bitcoin is a decentralized digital currency that you can buy, sell and exchange directly, without an intermediary like a bank. Bitcoin’s creator, Satoshi Nakamoto, originally described the need for “an electronic payment system based on cryptographic proof instead of trust.” Each and every Bitcoin transaction that’s ever been made exists on a public ledger accessible to everyone, making transactions hard to reverse and difficult to fake. That’s by design: Core to their decentralized nature, Bitcoins aren’t backed by the government or any issuing institution, and there’s nothing to guarantee their value besides the proof baked in the heart of the system. “The reason why it’s worth money is simply because we, as people, decided it has value—same as gold,” says Anton Mozgovoy, co-founder & CEO of digital financial service company Holyheld.

Python Turbo Уютное сообщество Python разработчиков from ms


Telegram Python Turbo. Уютное сообщество Python разработчиков.
FROM USA